package com.xm;

public class Employee {
    String name;
    int age;
    String designation;
    double salary;

    public Employee(String name) {
        this.name = name;
    }

    public void setAge(int empAge) {
        age = empAge;
    }

    public void setDesignation(String empDesignation) {
        designation = empDesignation;
    }

    public void setSalary(double emSalary) {
        salary = emSalary;
    }

    public void printEmployee() {
        System.out.println("姓名："+name);
        System.out.println("年龄："+age);
        System.out.println("职位："+designation);
        System.out.println("薪水："+salary);
    }
}
